package com.engineering.elink.videodao;

import org.apache.ibatis.annotations.Param;

import com.engineering.elink.domain.Enroll;

public interface EnrollMapper {
    int deleteByPrimaryKey(Integer enrollId);

    int insert(Enroll record);

    int insertSelective(Enroll record);

    Enroll selectByPrimaryKey(Integer enrollId);

    int updateByPrimaryKeySelective(Enroll record);

    int updateByPrimaryKey(Enroll record);
    
    int selectCountEnroll(@Param("courseId") Integer courseId,@Param("userId") String userId);
    
    int deleteByCourseEnroll(@Param("courseId") Integer courseId,@Param("userId") String userId);
    
}